<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>outerHTML测试</title>
</head>

<body>
    <div id="app" data-test="123123">
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis blanditiis architecto quam quis odit
            quaerat magni eaque laborum provident. Fuga corporis et corrupti. Quidem recusandae fugit tempora enim rerum
            temporibus?</p>
    </div>
    <script>
        let el = document.querySelector('#app')
        console.log('el.outerHTML:', el.outerHTML);
        console.log('el.innerHTML:', el.innerHTML);
        console.dir(el)
    </script>
</body>

</html>